# Contributor: Grigory Kirillov <txgk@bk.ru>
# Maintainer:
pkgname=xmag
pkgver=1.0.8
pkgrel=0
pkgdesc="Utility to display a magnified snapshot of a portion of an X11 screen"
url="https://gitlab.freedesktop.org/xorg/app/xmag"
arch="all"
license="custom"
options="!check" # no test suite
makedepends="
	libx11-dev
	libxaw-dev
	libxmu-dev
	libxt-dev
	util-macros
	"
source="https://xorg.freedesktop.org/archive/individual/app/xmag-$pkgver.tar.gz"
subpackages="$pkgname-doc"

build() {
	./configure \
		--target="$CTARGET" \
		--build="$CBUILD" \
		--host="$CHOST" \
		--prefix=/usr
	make
}

package() {
	make DESTDIR="$pkgdir" install
	install -Dm644 COPYING -t "$pkgdir"/usr/share/licenses/"$pkgname"
}

sha512sums="
083a9362773d07e33d6d5733a068df498fcfa8c99db1c1a92fdb99b86926b03bd7bd4157503af63f2a7e31e0f16453b0df36582354045e82ff529f2ab2b0b71a  xmag-1.0.8.tar.gz
"
